#ifndef RTSPSERVER_H264VIDEOSERVERMEDIASUBSESSION_H
#define RTSPSERVER_H264VIDEOSERVERMEDIASUBSESSION_H

#ifndef _FILE_SERVER_MEDIA_SUBSESSION_HH
#include "H264VideoFileServerMediaSubsession.hh"
#endif


#include "sct/rtspserver/h264videosource.h"
#include "H264VideoStreamFramer.hh"
#include "H264VideoStreamDiscreteFramer.hh"

namespace sct
{

class CH264VideoServerMediaSubsession: public H264VideoFileServerMediaSubsession
{
public:
	CH264VideoServerMediaSubsession(UsageEnvironment& env, void * source,
		      Boolean reuseFirstSource);

	virtual ~CH264VideoServerMediaSubsession();

protected:
	virtual FramedSource* createNewStreamSource(unsigned clientSessionId,
						      unsigned& estBitrate);

private:

	void * mSource;
};


}//end namespace

#endif
